package com.yunhe.estatemanage.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: ReportRepairCondition
 * @Description:
 * @author: GongDaCheng
 * @Date: 10:26 2021/9/6
 */
@Data
@ApiModel(value = "ReportRepairCondition",description = "报事报修查询条件对象")
public class ReportRepairCondition implements Serializable {

    private static final long serialVersionUID = 1313748928240974603L;

    @ApiModelProperty("虚拟园区")
    private Long virtualStationId;

    @ApiModelProperty(value = "归属园区id",required = false)
    private  List<Long> stationIds;

    @ApiModelProperty("跟进部门id")
    private Long orgId;

    @ApiModelProperty("当前操作人id")
    private Long currentOperatorId;

    private List<Long> dealWithOrgIds;

    @ApiModelProperty("处置时间 1(即刻) 2(3-6小时内) 3(12小时内) 4(24小时内)")
    private String disposalTime;

    @ApiModelProperty("当前状态 进行中（1待派发 2处理中） 已完成（3已完成 4撤销 5中止）")
    private String currentStatus;

    @ApiModelProperty(value = "开始时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String startTime;

    @ApiModelProperty("企业id")
    private Long companyId;

    @ApiModelProperty(value = "联系人id")
    private Long contactPersonId;

    @ApiModelProperty(value = "结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String endTime;

    @ApiModelProperty(value = "page",required = true)
    private int page;

    @ApiModelProperty(value = "size",required = true)
    private int size;
}
